import Chart from './chart'
import ChartXaxis from './chart-xaxis'
import ChartYaxis from './chart-yaxis'
import ChartYaxisGroup from './chart-yaxis-group'
import ChartTooltip from './chart-tooltip'
import ChartGrid from './chart-grid'
import ChartSeries from './chart-series'
import ChartLegend from './chart-legend'

Chart.install = (Vue) => {
  Vue.component(Chart.name, Chart)
  Vue.component(ChartXaxis.name, ChartXaxis)
  Vue.component(ChartYaxis.name, ChartYaxis)
  Vue.component(ChartYaxisGroup.name, ChartYaxisGroup)
  Vue.component(ChartTooltip.name, ChartTooltip)
  Vue.component(ChartGrid.name, ChartGrid)
  Vue.component(ChartSeries.name, ChartSeries)
  Vue.component(ChartLegend.name, ChartLegend)
}

export {
  Chart,
  ChartXaxis,
  ChartYaxis,
  ChartYaxisGroup,
  ChartTooltip,
  ChartGrid,
  ChartSeries,
  ChartLegend
}

export default Chart
